Latitude Output Registry entry

Specify the format in which latitude values will display in a client when retrieved from a database.

Usage

This Registry entry can be assigned to users, groups and system-wide:

Key User Group System
Key 1 User Group System
Key 2 user group Setting
Key 3 Setting Format
Key 4 Format Latitude Output
Key 5 Latitude Output  
Value format

where:

format

is a series of special characters.

The following table illustrates two things:

  1. Available format characters.
  2. The result that will be displayed for each format (demonstrating possible consequences for precision). 

Format

If original value is:

The result will be:

Comment

d

9 30 45 N

9

The (whole number) degree component.

dd

9 30 45 N

09

The (whole number) degree component. Values less than 10 get a leading zero.

m

9 6 45 N

6

The (whole number) minute component.

mm

9 6 45 N

06

The (whole number) minute component. Values less than 10 get a leading zero.

s

9 30 5 N

5

The second component rounded to a whole number. This may imply more or less precision than exists in the original value (see examples below).

ss

9 30 5 N

05

The second component rounded to a whole number. This may imply more or less precision than exists in the original value. Values less than 10 get a leading zero.

s

9 30 5.3 N

5

(Less precision implied).

s.s

9 30 5.3 N

5.3

 

s.ss

9 30 5.3 N

5.30

(More precision implied).

s.ss

9 30 5.36666 N

5.37

(Less precision implied).

s.sss

9 30 5.36666 N

5.367

(Less precision implied).

S

9 30 5.3 N

5.3

The second component shown with the level of precision that exists in the original value.

SS

9 30 5.3 N

05.3

The second component shown with the level of precision that exists in the original value. Values less than 10 get a leading zero.

S

9 30 5.36 N

5.36

 

S

9 30 5.36666 N

5.36666

 

M

9 6 30 N

6.5

The minute and second values combined expressed as decimal minutes. The precision of the result is based on the precision of the original value.

M

9 6 30.0 N

6.50

 

M

9 6 30.00 N

6.500

 

MM

9 6 30 N

06.5

The minute and second values combined expressed as decimal minutes. The precision of the result is based on the precision of the original value. Values less than 10 get a leading zero.

g

9 30 N

9.5

The full value (degrees, minutes and seconds) combined and expressed as decimal degrees. The precision of the result is based on the precision of the original value.

g

9 30 0 N

9.500

 

g

9 30 0.0 N

9.5000

 

gg

9 30 N

09.5

 

G

9 30 N

+9.5

The same as for g but with the value prefixed with a '+' for northerly values or '-' for southerly values.

G

9 30 S

-9.5

 

H

9 30 N

9.5

The same as for G but only southerly values are prefixed. This format is useful for feeding to mapping and other programs that require numeric values.

H

9 30 S

-9.5

 

D

 

 

Direction. Will display as N or S.

Some useful latitude formats are:

Format

Result similar to

dd mm ss D

05 07 15 S

dd mm SS D

05 07 15.4 S

dd° M"'" D

05° 7.25' S

Note the use of double quotes around the single quote: "'"

H

-5.12083

Note: The format characters can be combined to create the desired latitude string, separated by any other character(s).